<%@ page import="java.util.List" %>
<%@ page import="com.dsj.entity.OrderEntity" %><%--
  以列表形式显示用户的所有订单
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    List list = (List) request.getAttribute("orderAbstract");

%>
<html>
<head>
    <title>订单列表</title>
</head>
<body>
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">

    <tr>
        <td colspan="2">
            <jsp:include page="../../pages/common/head.jsp" flush="true" />
        </td>
    </tr>

    <tr>
        <td width="300" bgcolor="#F5F5F5" valign="top">
            <!--左侧01-->
            <jsp:include page="../../pages/common/left.jsp" flush="true" />
        </td>

        <td width="724" align="center" valign="top" bgcolor="#FFFFFF">
            <br/>
            <table width="100%" height="25" border="0" cellpadding="0"	cellspacing="0"
                   background="<%=request.getContextPath()%>/images/systemImages/bg_02.jpg">
                <tr>
                    <td>
                        <div align="center">
                            <strong>用户<%=session.getAttribute("name").toString()%>的所有订单信息&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <a	href="OrderServlet?orderAction=orderDelivered&deliverySign=true">已出货 </a>
                                <a  href="OrderServlet?orderAction=orderDelivered&deliverySign=false">未出货 </a>
                                <a href="javascript:history.go(-1)">返回</a>
                            </strong>
                        </div>
                    </td>
                </tr>
            </table>
            <br/>
            <table width="99%" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="CCCCCC">

                <tr bgcolor="#DCDCDC">
                    <td width="12%" height="25">
                        <div align="center">
                            编号
                        </div>
                    </td>
                    <td width="12%">
                        <div align="center">
                            电 话
                        </div>
                    </td>
                    <td width="36%">
                        <div align="center">
                            地 址
                        </div>
                    </td>
                    <td width="16%">
                        <div align="center">
                            是否出货
                        </div>
                    </td>
                    <td width="12%">
                        <div align="center">
                            订货时间
                        </div>
                    </td>
                    <td width="12%">
                        <div align="center">
                            操作
                        </div>
                    </td>
                </tr>
                <%
                    for (int i = 0; i < list.size(); i++) {
                        OrderEntity form = (OrderEntity) list.get(i);
                %>
                <tr align="center" bgcolor="#FFFFFF">
                    <td height="25"><%=form.getOrderId()%></td>
                    <td><%=form.getMobile()%></td>
                    <td><%=form.getAddress()%></td>
                    <td>
                        <%
                            if (form.isDeliverySign()) {
                        %>
                        是
                        <%
                        } else {
                        %>
                        否
                        <%
                            }
                        %>
                    </td>
                    <td><%=form.getCreateTime()%></td>
                    <td>
                        <%-- //查询当前用户某一指定订单详细资料的请求--%>
                        <a href="OrderServlet?orderAction=orderDetail&orderId=<%=form.getOrderId()%>">详细信息
                        </a>
                    </td>
                </tr>
                <%
                    }
                %>
            </table>
        </td>
    </tr>

    <tr>
        <td colspan="2">
            <jsp:include page="../common/statusBarNavigation.jsp"	flush="true" />
        </td>
    </tr>

</table>
</body>
</html>
